Barty posts comeback win in WTA Adelaide