Structural transformations in liquid, crystalline, and glassy B2O3 under high pressure