Kerr isolated horizons in Ashtekar and Ashtekar–Barbero connection variables