Multiphase phase field theory for temperature- and stress-induced phase transformations