Algerian president hails ceasefire in war-torn Libya