Modelling the microstructure of martensitic steels