Theoretical Investigations of Transition Metal Surface Energies under Lattice Strain and CO Environment