Measurements of primary cosmic-ray hydrogen and helium by the wizard collaboration