Pressure dependence of band-gap and phase transitions in bulk CuX (X = Cl, Br, I)