Reactivity of functionalized N,S-ketene acetal: regioselective construction of tetrahydrobenzo[b]pyran and chromeno[2,3-b]quinoline derivatives.