Thermodynamics of lanthanide(III) complexation in non-aqueous solvents