Coal combustion and gasification in a compartmented, fluidized-bed coal gasifier