Carbon dioxide dynamics in an agricultural headwater stream driven by hydrology and primary production