Growing Chinese demand for solar panels is bailing out the world’s largest manufacturer