Stress and grain growth in thin films