US grocer Supervalu is to buy eight stores in Wyoming from Albertsons, the company has announced.