A migrant surge tests Spain’s open policies