Reconstructing atmospheric histories from measurements of air composition in firn