Relationship between monolayer stacking faults and twins in nanocrystals