A second‐order optimization algorithm using quadric control updates for multistage optimal control problems