On the dynamical stability of ferromagnetic Ru and Os in the bct structure: a first-principles study