Investigation of the fabrication process of NbN/AlN/NbN Josephson junctions on MgO.