Solidification modelling of microstructures in near-net-shape casting of steels