Methods of making functionalized nanorods