Solid-state ionic devices