USA advances to Gold Cup quarterfinals after win vs Costa Rica