Stability and electronic structures of CuxTe