Nigeria's two main presidential candidates sign an agreement to prevent violence in tightly contested elections due on Saturday.