Quasi-linearization and the matrix Riccati equation