Solar modulation of galactic hydrogen and helium over the 23rd solar minimum with the PAMELA experiment