W.R. Berkley beats Q2 profit estimates by 16% as revenue misses