Incorporation of deformation twinning in crystal plasticity models