X-ray spectrum generation for a multiphase flow meter