A Real-Time Discharge Modelling and Environmental Monitoring System for Drilling Operations