Improving the performance of digitally-controlled high power grid-connected inverters