Control of nitrogen export from watersheds by headwater streams