Solvent effects on the linear and nonlinear optical properties of donor-acceptor polyenes: investigation of electronic and vibrational components in terms of structure and charge distribution changes