Molecular mechanics of toroidal carbon molecules