Single-Phase Energy Management System Operating in Islanding Mode with Repetitive Control and Active Damping