How to Solve Singular Discrete-Time Riccati Equations