How beam hardening influences the dimensional geometry in X-ray computed tomography