The difference in texture between intrusive and extrusive igneous rocks is primarily due to