The algebraic Riccati equation: conditions for the existence and uniqueness of solutions