Derivation of temperature anisotropy from shock jump relations: Theory and observations