Molecular aggregation and fluorescence spectra of aromatic polyimides