Three-dimensional electromagnetic breathers in carbon nanotubes with the field inhomogeneity along their axes