Spain has experienced a widespread power outage, with videos online showing how the country has been plunged into travel chaos.