First-half revenue, earnings contract sharply at Cosco, OOCL