A Novel Approach to Power Quality Assessment: Real Time Hardware-in-the-Loop Test Bed