Magnetoresistive and magnetostrictive sensors for the mobile era