Synthesis and characterization of new polymeric materials for pharmaceutical and optoelectronic applications