Robot joint characterisation and control using a magneto-optical rotary encoder