Low costs of wind and solar power helped renewables pass coal in electricity generation; gas remains the leader.