Engineering a dynamic defect-mediated heterojunction anode for high-performance secondary batteries with liquid and solid-state electrolytes | Synapse