High-density gas in the core of the Sagittarius B2 molecular cloud