Lifetimes of excited levels and electromagnetic transition rates in 147Pm and 199Hg