Three-dimensional structure from intensity correlations