Underground coal gasification with CCS