Synthesis, Characterization, and Biological Evaluation of Some New Functionalized Terphenyl Derivatives