Energetics of ultrathin CoSi2film on a Si(001) surface