Fluorescence and absorbance of polystyrene in dilute and semidilute solutions