QuantifyingandImprovingTransferabilityin DomainGeneralization