Cross-slip and twinning in semiconductors