Studies on the formation of nitre beds: physicochemical investigation on the nitrogen transformation in nature