Insights into van der Waals interaction between nanotubes and planar surfaces