Synthesis and applications of dendritic macromolecules for nanocomposite preparation