Dramatic transition between electric and magnetic rotations in 106Ag