France, Germany, Italy agree to work together on migrant crisis