Developing functional polymeric and optoelectronic materials through synthesis, formulation, and structure–property engineering for advanced applications in sensing, coatings, and energy technologies