Density-functional calculation of the bulk and surface geometry of beryllium.