Capacitive and impedimetric sensors based on macrocyclic compounds