Electromagnetic fields near planar interfaces.