Precision quantameter for high energy X-rays