Designing substituted furan and pyran derivatives from cyclic and acyclic precursors: Synthesis and applications