Theoretical study of the X2Π and A2Σ+ states of CUO and CUS