Calculation of Cohesive and Surface Energies of Thorium and Uranium Dioxides