The International Pulsar Timing Array: second data release