Mechanism of voltage generation during phase change of FeS single crystals