Design of an Optimal Current Controller of DC/AC Grid-Connected Inverter to Improve Power Quality