Theoretical study of hydrogen sorption on LaNi5 using statistical physics treatment: microscopic and macroscopic investigation