Smart City Threat Detection Using Integrated Chemical Sensing and Machine Learning