Single-phase inverter for grid-connected and intentional islanding operations in electric utility systems