Density functional theory beyond the surface tension. Interfacial width, elastic bending constants and line tension