Validation of X-ray radiography for characterization of gas bubbles in liquid metals