Preparation and applications of magnetostrictive thin films