Title: A formal solution to Maxwell's equations for general linear media