Antiferromagnetic rare-earth ordering in the intermetallic compounds R2Pd2In (R = Pr, Nd)