Modeling microstructural evolution during crystallization: from organic thin films to electrodeposited metals