Luminescence and prediction of transition probabilities for solar energy and lasers