Foot Locker reports profit in Q2