Photo-and thermoinitiated formation of J and H aggregates in amorphous dispersions of a carbocyanine dye