From modeling to synthesis and characterization of nitrogen-selective metallic membranes