Counterion complexation of calixarene ligands in monolayers and micellar solutions