Power electronics applied to electric vehicles, battery management systems, electric motor control, renewable energy and microgrids