Quantification of electron energy-loss spectra with K and L shell ionization cross-sections