Synchrotron x-ray analyses of crystalline and electronic structures of carbon nanowalls