A theoretical interpretation of the pressure–composition isotherms of RNi5 (R=La, Pr, Nd and Sm) systems based on statistical mechanics