Texturing of magnetic materials at high temperature by solidification in a magnetic field