Band-structure calculation using density-functional theory