First-principles investigations of the physical properties of RCd (R=Ce, La, Pr, Nd)