Density functional calculations of Fermi surfaces of normal and heavy-electron metals