Vibrational dynamics within the embedded-atom-method formalism and the relationship to Born–von-Kármán force constants