Magnetic properties of oxide glasses containing iron and rare-earth ions