The May 17, 2012 solar event: Back-tracing analysis and flux reconstruction with PAMELA