Spain and Mauritania agree to stem Mediterranean migration flows