Theoretical modeling of cellular and dendritic solidification microstructures