Electronic structure of molecules. XVI. Analysis of the formation of the methane molecule in the Hartree-Fock model