A Novel Algorithm for the 3D Calculation of the Magnetic Field Generated by Complex Configurations of Overhead Power Lines