Three-phase grid-connected inverter design with a PI controller using MATLAB Simulink