A Low-Frequency Electromagnetic Wave Propagation Code in 2D and 3D