Probabilities of tree topologies with temporal constraints and diversification shifts