Riccati equations and Lie series