Electron energy-loss spectrum of an electron passing near a locally anisotropic nanotube