Population Inversions in an Expanding Gas: Theory and Experiment