A simple way to prepare nickel selenide from NiSe2 to Ni1-xSe and their formation mechanism