An FPGA-based advanced control strategy of a grid-tied PV CHB inverter