An IoT Framework for the Pervasive Monitoring of Chemical Emissions in Industrial Plants