Control theoretic analysis and design of numerical algorithms