The formation of the Widmanstätten structure in meteorites