Density-functional approach to smectic order in an aligned hard-rod fluid.