Amorphous structure of grain boundaries and grain junctions in nanocrystalline silicon by molecular-dynamics simulation