Lifetimes of magnetic excitations in Fe and Co atoms and clusters on Pt(111)