Solid-state optical properties of the methyl-exopyridine-anthracene rotaxane