Time dependent and time-independent approaches to the computation of absorption spectra in solution: uracil derivatives as a test case