PhD thesis on Modelling martensite formation and austenite retention