Text this: Robustness of operational matrices of differentiation for solving state-space analysis and optimal control problems