Measurement-based meshing, basis selection, and prior assignment in chemical species tomography