Most Asian stock markets close midweek with gains