Using spins in diamond for quantum technologies