Gauss pseudospectral and continuation methods for solving two-point boundary value problems in optimal control theory