SMS: Entangling nuclear spins using photoexcited triplet states