Finite element modelling of giant magnetostriction in thin films