The fixation of ammonia and nitrate by organic materials