Entanglement of systems of dipolar coupled nuclear spins at the adiabatic demagnetization