Albertsons and Rite Aid report upbeat earnings ahead of merger