Sol-gel processing of ionic conductors