Virtualized Environments To Analyze Cyber-Physical Attacks And Defenses