Germany, France announce plans to welcome thousands of migrants