Spectroscopic studies of a polarity-sensitive pyrenyl dye