Electronic Structure of Pt and Au Compounds Measured by X-ray Emission and X-ray Absorption Spectroscopies