Numerical approximation of nonlinear fractional differential equations with subdiffusion and superdiffusion