Molecular-dynamics simulations of nucleation and crystallization in supercooled liquid silicon: Temperature-gradient effects