Electron-loss near-edge structure (ELNES) as a probe of valence and coordination number