XANES and XPS Study on Microstructure of Mn-Doped ZnO Films