A fast linearized numerical method for nonlinear time-fractional diffusion equations