Magnetic Encoder for Robot Joints