Formation of CN (B2Σ+) radicals in the vacuum-ultraviolet photodissociation of pyridine and pyrimidine molecules