Vector Potential Electromagnetics with Generalized Gauge for Inhomogeneous Media: Formulation (Invited Paper)