Generation of spatially separated spin entanglement in a triple-quantum-dot system