Calculation of vacancy-formation energy of alkali metals using an electron-density functional