Reinforcement Learning for Cyber-Physical Systems (with Cybersecurity Case Studies)