Former coup leader elected president of Africa’s Comoros