Energy cost and optimal entanglement production in harmonic chains | Publicación