Probabilistic approach to treatment planning in radiation therapy