Three-dimensional resistivity forward modeling and inversion with topography Three-dimensional forward modeling in EM geophysics