Thinking outside the channel: modeling nitrogen cycling in networked river ecosystems