Barty into Madrid Open quarter finals