Structure and magnetic properties of CrCoX (X = Cr, Ni) thin films