Walgreens buying Rite Aid for $9.4 billion