X-ray spectroscopy of copper surface chemistry for catalysis of carbon dioxide conversion to fuels