Methos for measuring a 3-dimensional sample via measuring device comprising a laser scanning microscope and such measuring device