13C and 1H NMR studies of structure and tautomerism in some perimidines