Electrostrictive or magnetostrictive elements