Costco sees sales, profits rise in second quarter