Molecular dynamics study of dendrimers: Structure and effective interaction