Self-assembled multilayers of ω-mercaptoalkanoic acids : selective ionic interactions