Rite Aid Posts Q2 Loss