3-D Inversion In Subsurface Electrical Surveying-I. Theory