Pipelined successive approximation conversion (PSAC) with error correction for a CMOS ophthalmic sensor