Single chip measures pH, nitrate, phosphate and potassium in water