Real-time online monitoring of the ion range by means of prompt secondary radiations