A semi-analytical three-dimensional process-based model for hyporheic dissolved oxygen and nitrogen dynamics in gravel bed rivers