On the ab initio evaluation of Hubbard parameters. I. The analytical approach in the absence of orbital relaxation.