First-principles simulations of iron with nitrogen: from surface adsorption to bulk diffusion