Silver nanowires with optimized silica coating as versatile plasmonic resonators