Magnetic and magnetocaloric properties of R 6Mn 23 (R=Y, Nd, Sm, Gd-Tm, Lu) compounds