Text this: Fast synchronization with enhanced switching control for gridtied single-phase square wave inverter using FPGA