Magnetic properties of the high-temperature superconductor R2Ba4Cu7O15−δ (R=Er, Dy)