Finite element modeling of stress variation in multilayer thin-film specimens for in situ transmission electron microscopy experiments