difference between synchronous motor and synchronous generator