3-D Numerical modeling of an electromagnetic field in geoelectrics using the Trefftz method