Method for controlling a wound rotor synchronous motor