Ammonia detection in water with a tin dioxide based optical sensor