Frequency and time domain EM forward modeling and inversion program