Biocides, pest repellants or attractants, or plant growth regulators containing heterocyclic compounds having rings with two nitrogen atoms as the only ring hetero atoms