Heterocyclic compounds containing 1,3-diazine or hydrogenated 1,3-diazine rings not condensed with other rings having one double bond between ring members or between a ring member and a non-ring member with heteroatoms directly attached in position 2