Controlling of nonlinear loads and grid voltage distortion in distributed generation using current compensator