Local structure heterogeneity in Sm-doped AgNbO3 for improved energy storage performance.