Elastic constants of the hard-sphere solid from density-functional theory.