Estimating clade-specific diversification rates and palaeodiversity dynamics from reconstructed phylogenies