Continuous monitoring of total and inorganic mercury in wastewater and other waters