The (In)Security of Smart Cities: Vulnerabilities, Risks, Mitigation, and Prevention