Implementation of a pupil detection method using an FPGA accelerator and a high-level synthesis tool