Stable configurations of C20 and C28 encapsulated in single wall carbon nanotubes