Li intercalation effects on magnetism in undoped and Co-doped anatase TiO2