Merck beats Q2, raises revenue forecast, cuts profit on deal charges