The cosmic-ray proton and helium spectra measured with the CAPRICE98 balloon experiment