Energy-loss near-edge structure changes with bond length in carbon systems