Turning a 3-Phase Motor into a Generator