Photophysics of dimethylamino-substituted polymethine dye in polymeric media