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