Modeling nitrogen cycle at the surface-subsurface water interface