Algorithms for processing signals of inverter-fed drives