Effects of organic ligands, electrostatic and magnetic interactions in formation of colloidal and interfacial inorganic nanostructures.