The trapped two-dimensional Bose gas: from Bose–Einstein condensation to Berezinskii–Kosterlitz–Thouless physics