Structure and luminescence of rare earth‐doped silicon oxides studied through their X‐ray absorption near edge structure and X‐ray excited optical luminescence