Ash Barty outplays fifth seed Karolina Pliskova to cap a magnificent fortnight with victory at the Miami Open.