Text this: Real-time hardware-in-loop system based validation of vehicle-grid interface for bidirectional power flow control