Statistics for DNA-Functionalized Monolithic Hydrogels and Gold Nanoparticles for Colorimetric DNA Detection