Magnetoresistive sensors based on the elasticity of domain walls