Transient Stability of a Synchronous Generator Under Conditions of Bang-Bang Excitation Scheduling