Sorption hysteresis in the LaNi5-H and SmCo5-H systems