Magnetostriction of dilute Yb and Tb monocrystals