Role of nucleation and growth in two-phase microstructure formation