Stabilizing Dendritic Electrodeposition by Limiting Spatial Dimensions in Nanostructured Electrolytes