Q rings, q indices, number of pixels in each q ring

This module will compute the Q values for all pixels in a shape specified by
detector_size and find the indices of the required Q rings. Count the
number of pixels in each Q ring.
This is not good function design.  How the output is interpreted depends on the input.  I suggest returning both the left and right edges of the rings as a  2xN array in all cases