Cyber Attack Mitigation for CPSs: Hybrid System Approach to Controller