Thermal stress-induced charge and structure heterogeneity in emerging cathode materials