Synchronous Generator in Simulink Environment