Effect of structural phase transformations under pressure on electronic and optical properties of CuInS 2