The QACITS pointing sensor: from theory to on-sky operation on Keck/NIRC2 — arXiv2