Internal and external nitriding and nitrocarburizing of iron and iron-based alloys