Including substrate temperature in Berg model for reactive sputtering