Orthogonal range reporting: query lower bounds, optimal structures in 3-d, and higher-dimensional improvements