The preparation process of plasma-nitrided barriers in NbN Josephson junctions for digital applications