Electromagnetic waves in the molecular layers adsorbed on the surface of a solid