Free-energy predictions and absorption spectra calculations for supramolecular nanocarriers and their photoactive cargo