For years coal has been leading energy generation in the US and around the world. But that's no longer the case: renewable energy is surging.