Save powder diffraction intensity data to different output types

use `os.path.join`  for the first part of this.