Solves the electromagnetic problem of reflection and
transmission at a multilayer planar interface. Also computes
the decay rates for a dipolar emitter near a multilayer