Periodic solutions of periodic Riccati equations