The International Pulsar Timing Array: Second data release