Fast simulation of phylogenetic trees under state-dependent diversification