Write compressed HDF5 files