The adiabatic approximation in the theory of molecules and solids