Fundamental studies in automatic nitrogen digestion