Costco profit up in Q2