Magnetoelastic sensor for real-time monitoring of elastic deformation and fracture alarm