Research on stability issues of a grid-connected PV inverter in power hardware in the loop (PHIL) architecture