China’s solar-panel makers are investing more in building their own power projects, expanding sources of revenue and soaking up some of the manufacturing capacity that depressed panel prices.