Lattice energy and heat of formation