Study about Controlling and Optimizing the Power Quality in Case of Nonlinear Power Loads