Electronics to intorpolate and digitise signals from linear, rotary and angle encoders