Effects of the local environment on plasmonic coupling of metallic nanotube arrays