Grid-Tied Single-Phase Bi-Directional PEV Charging / Discharging Control