Two-coordinate X-ray detector