postproc.py: improve --list-ranges

- for HDF5 result files, output union of ranges for all steps if --step or
  --time are not given
- output in form suitable for --ranges