Condensed heterocyclic systems with a quaternary nitrogen atom