A Physical Hash For Preventing And Detecting Cyber-Physical Attacks In Additive Manufacturing Systems