Three-dimensional structure of quantized vortices in rotating Bose-Einstein condensates