Barty beats Sharapova, Halep survives scare in Cincinnati