Two-component density-functional theory: Application to positron states.