Near-edge X-ray absorption fine structure investigations of order in carbon nanotube-based systems.