Atomic-scale characterization of tin-based intermetallic anodes