Pile-up correction for the Swift-XRT observations in WT mode