Ivory Coast's president gains second term