PAMELA's measurements of geomagnetic cutoff variations during solar energetic particle events