An embedded-atom-method model for alkali-metal vibrations