Physical Mechanism and Chemical Trends in the Thermal Expansion of Inorganic Halide Perovskites.