Origin of the extremely large magnetoresistance in topological semimetal PtS n 4