Release of encapsulated molecules from carbon nanotubes using a displacing method: a MD simulation study