What are the determinants of a crystal structure in minerals?