Optimization and individualization of treatments in advanced radiotherapy techniques