已知复数z满足zi+1+3i=(-1+3i)(1-i).求复数z