Development of a Smart-Grid Cyber-Physical Systems Testbed