Layered H-matrix based direct matrix inversion of significantly reduced complexity for finite-element-based large-scale electromagnetic analysis