FPGA-Based Interpolation for Motor Encoders