An electromagnetic hybridizable discontinuous Galerkin method forward solver with high-order geometry for inverse problems