Understanding and controlling key driving forces in nanomaterials growth and assembly