Painlevé type equations and Hitchin systems