Design of flexible proton beam imaging energy spectrometers (PROBIES)