Save powder diffraction intensity data to different output types

you can drop the `str` from the type here