In situ gasification of a solid fuel and CO2 separation using chemical looping