Anisotropic solvent shifts determined by factor analysis