Ag nanoparticle/polymer composite barcode nanorods