Optical Sensor and Neural Networks for Real-Time Monitoring and Estimation of Hazardous Gas Release Rate