How to accurately determine the uptake of hydrogen in carbonaceous materials