Weak Galerkin finite-element method for time-fractional nonlinear integro-differential equations