On the Doubling Algorithm for a (Shifted) Nonsymmetric Algebraic Riccati Equation