Ex-rebel sworn in as Central African Republic president