Solar energy, once a niche application for a limited market, has become the cheapest and fastest-growing power source on earth.