Effect of a change in phase of the reflected wave on measurements of the shape of a surface in optical profilometry