The application of a position-sensitive detector to high-pressure X-ray diffraction using a diamond-anvil cell