Use of ultraviolet absorption for determination of sugars