CAPRICE98: a balloon-borne magnetic spectrometer equipped with a gas RICH and a silicon calorimeter to study cosmic rays