Save powder diffraction intensity data to different output types

Don't use `==` for None, use `if ext is None`