A methodology for the analysis of the three-dimensional mechanical behavior of a Nb3Sn superconducting accelerator magnet during a quench