Design and implementation of a grid-connected solar micro-inverter using a single-stage galvanically isolated topology with integrated magnetics