A position-sensitive detector for neutron powder diffraction