Configuring Au and Ag nanorods for sensing applications