Phase discovery with active learning: Application to structural phase transitions in equiatomic NiTi