Finite Formulation of the Electromagnetic Field