Quantum measurement and entanglement of spin quantum bits in diamond