Towards the development of nanosprings from confined carbyne chains