Describe the working principles of synchronous machines, focusing on the role of excitation systems, rotor dynamics, and the significance of power angle in maintaining synchronization with the power grid.