With plenty of wind and a rise in investment, Spain's main source of electricity became wind power in 2021.