Quantifying Cyber Risk and Energy on Digitalized Advanced Manufacturing