A hydrostable Zn2+ coordination polymer for multifunctional detection of inorganic and organic contaminants in water.