Interatomic Potentials From First-Principles Calculations