Development and application of electronic circuits as compensating networks for electromagnetic devices