Smart Measurement System for the Assessment of Magnetic Fields Generated by Complex Power Systems