South Africa generates most of its electricity using coal , a major source of the so-called greenhouse gases blamed for climate change .