Building Safe, Secure, and Real-Time Industrial Automation Systems