Rite Aid same-store sales edge up in July