Unveiling the origin of XMM-Newton soft proton flares. I. Design and validation of a response matrix for proton spectral analysis | Synapse