Transient magnetic fields and electron polarizations of H-like oxygen ions in crystalline iron and amorphous iron-boron compounds