Alternative methods for antireflection of optical surfaces with use of the transition layers and diffraction gratings