HOW DOES AN INVERTER CONTROL A MOTOR