Thermally-induced phase transitions in Pt/Tb/Fe trilayers