Thermomechanical phase transition models - analysis, optimal control and industrial applications