Text this: Study of prompt gamma and neutron emission for real-time range verification in proton and carbon-ion therapy.