Fabrication and characterization of dye-doped polymeric waveguides for optoelectronics and sensing applications