Tunability of Electronic States in Ultrathin Gold Nanowires