Text this: Green’s Function Method for Electromagnetic and Acoustic Fields in Arbitrarily Inhomogeneous Media