Which of the following processes cause minerals to crystallize?

illumination with ultraviolet light

adding water to them

cooling of magma

exposing them to a magnet