Theoretical site- and symmetry-resolved density of states and experimental EELS near-edge spectra ofAlB2andTiB2