Crystal structures, magnetic and superconducting properties of the RuSr2NdCu2Ox and RuSr2GdCu2Oy compounds