Extension of molecular electronic structure methods to the solid state: computation of the cohesive energy of lithium hydride