Gaia Data Release 2: The celestial reference frame (Gaia -CRF2)