Cobalt(II)-Based Metal-Organic Framework as Bifunctional Materials for Ag(I) Detection and Proton Reduction Catalysis for Hydrogen Production.