Sol-gel approaches for solid electrolytes and electrode materials