Complex projective structures over Riemann surfaces and solutions to Hitchin's equations