A Comprehensive Survey on the Security of Smart Grid: Challenges, Mitigations, and Future Research Opportunities