EU to take in 20,000 migrants amid Mediterranean crisis