Thermodynamic stability of RNi2 Laves phases