Photoluminescence and electroluminescence properties of dye-doped polymer system