Energetics and structural characterization of C 60 polymerization in BN and carbon nanopeapods