Asian markets close midweek with losses after weak data from China