Newton-type methods for solving nonlinear equations on quadratic matrix groups