Local bonding and electronic structure obtained from electron energy loss scattering