Simulating the Hysteretic Characteristics of Hard Magnetic Materials Based on Nd2Fe14B and Ce2Fe14B Intermetallics