Simulation and Control of a Shunt Active Filter