Renewable electricity generation outpaced natural gas this month to become the second largest source of electricity worldwide, according to the International Energy Agency.