Investigations on the ultraviolet absorption spectra and luminescence spectra of some organic molecules in different states