Tensor-optimized shell model for the Li isotopes with a bare nucleon-nucleon interaction