Synthesis of dihydrobenzofurans from phenolic mannich bases and their quaternized derivatives