Preparation of di- and triamides and their application in ion-selective electrodes