Pyrazines or piperazines ortho- or peri-condensed with heterocyclic ring systems