Understanding resolution in the high-resolution rotary encoder