Identification of different oxygen species in oxide nanostructures with 17O solid-state NMR spectroscopy