Constitutive modeling of multiphase materials including phase transformations