Save powder diffraction intensity data to different output types

Before starting the write I would have test like

```python
if q_or_2theta not in set('Q', '2theta'):
    raise ValueError(...)
```