Excitation System, Proportional and Integral Controls of a Synchronous Generator for Reducing Adverse Impacts to Power System from Voltage Fluctuations