Designing carbon nanotubes for therapeutic applications using molecular dynamics and density functional methods