Measurement of the void fraction in two‐phase flow by x‐ray attenuation