Zn K edge and O K edge x-ray absorption spectra of ZnO surfaces: implications for nanorods