Detection of mercury ions in water using a membrane-based colorimetric sensor