Madrid says a renewables boom is shielding its citizens from soaring fossil fuel costs. But that’s not the full story.