Demagnetization process and magnetic seeds for R-Fe-B permanent magnets