Structure modifications in chalcopyrite semiconductors