Recursive Algorithms for Solving a Class of Nonlinear Matrix Equations with Applications to Certain Sensitivity Optimization Problems