Solar power might become the world’s largest source of electricity by 2050 as falling costs boost installations, according to the International Energy Agency.