Automatic Tuning Matching Cycler (ATMC) in situ NMR spectroscopy as a novel approach for real-time investigations of Li- and Na-ion batteries.