Radiative lifetime of vibrationally excited N2H+ and N2D+ molecular ions