Quantum control of interacting nuclear and electron spins in diamond