Spain's PM visits West Africa aiming to stem migration surge