All-sky search for short gravitational-wave bursts in the second Advanced LIGO and Advanced Virgo run