Gap profit edges up 3% in Q2, sales beat Street