A spectral collocation method for nonlinear fractional initial value problems with a variable-order fractional derivative