Li batteries with porous sol-gel cathodes