Interaction-free measurement and the quantum Zeno effect