Diffraction of light by surface irregularities and its role in the formation of a periodic surface microrelief