Barty wins first set but loses to grass-court specialist