Reaction of 4-cyano-1,3-dihydroxy-5,6,7,8-tetrahydroisoquinolines with vilsmeier reagent: structure and mechanism of formation of [2,7]naphthyridines