Embedded-atom method: Derivation and application to impurities, surfaces, and other defects in metals | Synapse