Spanish Prime Minister Pedro Sánchez says he wants to deepen ties with Algeria as the two countries rebuild relations following a diplomatic rift over Western Sahara.