A Tetrahedral Refinement Algorithm For Adaptive Finite Element Methods In Electromagnetics