The fate of sulfide during igneous processes of terrestrial planetary bodies