nir/format_convert: Add a function to pack RGB9_E5 formats