Tunable phase transitions in half-Heusler TbPtBi compound