Ligand-Induced Energy Shift and Localization of Kondo Resonances in Cobalt-Based Complexes on Cu(111).