Spin-dependent x-ray absorption of MnO and MnF2.