Modeling oxygen and soil moisture effects on denitrification