A Monte-Carlo simulation study of twinning formation in InP nanowires