Electron energy loss and secondary emission mechanisms in BaO