Rite Aid completes $500 million debt refinancing