In situ topography measurement in the SEM