Calculation of transition probabilities from data on population relaxation for quantized levels