Authorities have restored electricity supply across Spain following Monday's blackout that also affected Portugal and part of France.