Water quality analysis using an inexpensive device and a mobile phone