Spain’s Socialists are open to negotiating deals with rivals