Solar and wind power are replacing coal and gas in power generation, but experts warn of hurdles ahead.