A high-speed analog-to-digital converter using Josephson self-gating-AND comparators