Three-Dimensional Inversion of Electromagnetic Data