Distribution of Magnetic Flux Density under Stress and Its Application in Nondestructive Testing