Technology turns smartphones into on-the-spot detectors for foodborne illnesses, other dangerous contaminants