A Real-time Platform for Teaching Power System Control Design