Determining the initial rotor position