How network structure can affect nitrogen removal by streams