The Determination of the Density Distribution of a Gas Flowing in a Pipe from Mean Density Measurements