Gravitational-wave detection via radio-pulsar timing