X-ray absorption near-edge structure at the Mg and Fe K-edges in olivine minerals