The crystallization of amorphous UO2