Interatomic potentials in covalent and semi-covalent solids