Thermodynamics of deposition flux-dependent intrinsic film stress