Antiferromagnetic order in the ThCr2Si2 type phosphides CaCo2P2 and CeCo2P2