Magneto-elastic coupling and Peierls-like phase transition of one-dimensional magnetic nanoparticle chains