Diffraction effects in length measurements by laser interferometry