Sol-gel synthesis of TiO2 anatase in a fluorinated medium and its applications as negative electrode for Li+ and Na+ batteries