Adiabatic demagnetization of Er3+ or Nd3+ substituted YAG