Diversity-Oriented Synthesis of Libraries Based on Benzofuran and 2,3-Dihydrobenzofuran Scaffolds.