Text this: Theoretical concepts of x-ray nanoscale analysis