Encapsulation of organic molecules in carbon nanotubes: role of the van der Waals interactions