Density functional calculations for the structure of vortices in superfluid 4He