Hollow metal nanorods with tunable dimensions, porosity, and photonic properties.