MEASUREMENT OF THE ISOTOPIC COMPOSITION OF HYDROGEN AND HELIUM NUCLEI IN COSMIC RAYS WITH THE PAMELA EXPERIMENT