Three-dimensional structure of the Crab Nebula