Mimicking lightning-induced electrochemistry on the early Earth