Probing the Electronic and Magnetic Properties of Transparent Semiconductor Nanowires using X-ray Absorption Spectroscopic Methods