Analyzing the Cyber Risk in Critical Infrastructures