Soft fibers with magnetoelasticity for wearable electronics