DCO+, DCN, and N2D+ reveal three different deuteration regimes in the disk around the Herbig Ae star HD 163296