Rite Aid moves to refinance debt