Quantum beat measurements on spin-polarized electrons in oxygen ions emerging from magnetized Ni- andGd-layers