Measuring the divergence of laser beams to correct interferometric displacement measurements