Determination of nitrate in water using ammonia probes and reduction by titanium (III)