Smartphone based detection of different contaminants in water