Calculations of phonon frequencies and dielectric constants of alkali hydrides via the density functional method