FPGA implementation of an adaptive modulation method for a three-phase grid-tied PV CHB inverter