Crystal structure and magnetic behavior of novel R2PdIn8 (R = Pr, Nd, and Sm) compounds