Cyber-Physical Security Testbeds: Architecture, Application, and Evaluation for Smart Grid