Total reflection of light from a corrugated surface of a dielectric waveguide