Distribution-Invariant Risk Measures, Entropy, and Large Deviations