Conversion of solid fuels and sorbents in fluidized bed combustion and gasification