Mechanical and Thermal Properties of Linear Carbon Chains Encapsulated by Multi- and Double -Walled Carbon Nanotubes