Ligand K-edge x-ray absorption spectroscopy as a probe of ligand-metal bonding: Charge donation and covalency in copper-chloride systems