Early warning smartphone diagnostics for water security and analysis using real-time pH mapping