Robust control of entanglement in a nitrogen-vacancy center coupled to a C 13 nuclear spin in diamond