Nanoscale infrared spectroscopy as a non-destructive probe of extraterrestrial samples