Software-in-the-loop simulation of a test system for automotive electric drives