Correct pixel coordinate computation in Detector2D

Pixel coordinate computation in Detector2D is correct only along the axes; should be replaced by full 3D computation as previously in FlatDetector.