Analysis and Optimization of Colorimetric Nanosensors for Rapid Detection of Microbes in Water