Mechanical control of metal-ligand complexation and catalysis through surface immobilization