A modified Schur method for solving algebraic Riccati equations