Structural and magnetic properties of superconducting RuSr2GdCu2O8