Reinforcement learning for cyber-physical systems with cybersecurity case studies. (2019)