Photo-Ionization in Liquids and Crystals and the Dependence of the Frequency of X-Ray Absorption Edges on Chemical Constitution