A tensorial fundamental measure density functional theory for the description of adsorption in substrates of arbitrary three-dimensional geometry