Read and write H5MD files