Energy transport in the near field of an electric dipole near a layer of material