Measurement of hydrogen and helium isotopes flux in galactic cosmic rays with the PAMELA experiment