Phase-diffusion pattern in quantum-nondemolition systems