The time-dependent variational principle for non-linear Hamiltonians and its application to molecules in liquid phase.