Former PM is second civilian to become president of West African nation after almost three decades of one-man rule.