Structured electrolytes to suppress dendrite growth in high energy density batteries