First-principles calculations of the electronic properties of two-dimensional pentagonal structure XS2 (X=Ni, Pd, Pt)