Measurement of g-factors of excited states in Cd111 and Pb204