Albertsons to buy drugstore chain Rite Aid