Self-consistent continuum solvation for optical absorption of complex molecular systems in solution