Spanish elections: Socialists win amid far-right surge