Kinetic model for thin film stress including the effect of grain growth