Electronic modification of Cu-based chalcopyrite semiconductors induced by lattice deformation and composition alchemy