Open data from the first and second observing runs of advanced LIGO and advanced Virgo