Save powder diffraction intensity data to different output types

You might want to put a check in to see if the output file exists and provide a flag `overwrite` as on optional input to determine if the existing file should be overwritten.