Design of a Two-Stage Level-Two Bidirectional On-Board Battery Charger for Plugin Vehicles