Cyber-Attack Detection and Mitigation in Networked Control Systems