Doping effects of rare-earth ions in La0.5−xRxBa0.5CoO3 (R=Y, Ce, Pr, Nd)