Measuring geometric parameters of semiconductor structures, e.g. profile, critical dimensions or trench depth