Solar modulation of cosmic deuteron fluxes in the PAMELA experiment