Optimal carbon dioxide and hydrogen utilization in carbon monoxide production