A spectroscopic study of the photodimerization of anthracene sandwich dimers in dianthracene