Magnetostrictive sensor principle