Understanding Ionic Conduction in Solid Electrolytes for Lithium and Sodium Ion Batteries