Quantitative phase-field modeling of dendritic growth in two and three dimensions