Ionic conduction of lithium and magnesium salts within laminar arrays in a smectic liquid-crystal polymer electrolyte