Crystals and magnetic structures of CeC2, PrC2 and NdC2