Ureas or thioureas containing the groups >N—CO—N< or >N—CS—N< containing the group >N—CO—N< where at least one nitrogen atom is part of a heterocyclic ring; Thio analogues thereof