Full-wave solution for the analysis of electromagnetic propagation through the ground