Temperature dependence of magnetic hysteresis of RCo x :Co nanocomposites (R=Pr and Sm)