Design, photoelectric properties and electron transition mechanism of Cr doped p-CuGaS2 compound based on intermediate band effect