Effect of Li doping on the electronic and magnetic properties of BiFeO3 by first principles