Optical absorption and phase transitions in Cu-III-VI2 compound semiconductors at high pressure