The determination of stresses in thin films: modelling elastic grain interaction