Static and dynamic properties of a GaAs p-i-n position-sensitive detector (PSD)