Nitrogen donor heterocycles and their Schiff bases as analytical agents complexing agents and corrosion inhibitors