Crystal structure and magnetic properties of RCu5-xPdx (R = Pr, Nd, Sm and Eu) alloys