A Real Time Power Hardware in the Loop Test Bed for Power System Stability Studies