Machine learning-based anomaly detection algorithms and game theory-based cybersecurity investment analysis for cyber-physical systems