Quantitative Inversion of Stress and Crack in Ferromagnetic Materials Based on Metal Magnetic Memory Method