The International Criminal Court has sentenced two Central African Republic militia leaders to up to 15 years for war crimes and crimes against humanity.