Three-dimensional inhomogeneity of electron-temperature-gradient turbulence in the edge of tokamak plasmas