What determines the type of crystal present in a mineral?