Judd Trump opened up a two-frame advantage over Yan Bingtao at the World Championship at the Crucible.