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