Ab initio Hartree-Fock perturbed-cluster treatment of local defects in crystals: application to carbon impurities in silicon