Magnetic and crystallographic characteristics of rare-earth ternary carbides derived from R2Fe17 compounds