The effect of a magnetic field on the martensite transformation in steels