Pulsar timing and gravitational waves