generator principle working synchronous construction motor diagram suitable