Detection and Identification of Covert and Replay Attacks in Cyber-physical Systems Using Model-Based and Data-Driven Based Methods