Density-functional theory for the interfacial properties of a dipolar fluid