Carbon sp chains in diamond nanocavities