Catalytic gasification of doped carbon — a microscopic study