CNOOC Hits Record First-Half Profit, Cuts Output Target