Spain’s nationwide blackout this week is putting a spotlight on the potential vulnerabilities in its system that could offer lessons for other countries, as rapid electrification and the shift to clean energy place new demands on grids across the world.