Integrated gasification and looping CO2 capture