Optical measurement of the roughness of sinusoidal surfaces