Magnetic and structural properties of Ca(Fe1-xCox) 2P2 and Ca(Ni1-xCox) 2P2