Rotary encoding device