Handling of beam spectra in training and application of proton RBE models