John Higgins produced a tournament-high 145 to open a one-frame advantage against Ronnie O’Sullivan in their Masters quarter-final.