On computing the distance to stability for matrices using linear dissipative Hamiltonian systems. (November 2017)