HIL for Variable Speed Drives: From Design to Test Automation