Diffraction effects in the propagation of radiation in polarizable layers