Insights into the molecular structure and chemical bonding of regular oligomers and polymers from their XPS valence spectra