Text this: Generation of three-qubit entangled W-state by nonlinear optical state truncation