An error analysis for Hartree-Fock crystal orbital calculations