Oxygen integration between a gasification process and oxygen production using a mass exchange heuristic