Optically and Chemically Encoded Nanoparticle Materials for DNA and Protein Detection