Cyber security of the smart grid: Attack exposure analysis, detection algorithms, and testbed evaluation