Improving the energy resolution of bent crystal X-ray spectrometers with position-sensitive detectors