Chemical Speciation and Bond Lengths of Organic Solutes by Core-Level Spectroscopy